﻿<%@ Control Language="C#" AutoEventWireup="false" CodeFile="VantageBridge.ascx.cs" Inherits="Controls_VantageBridge" %>
<%@ Register Src="~/Controls/Vantage/Children/CollectionInfo.ascx" TagName="CollectionInfo" TagPrefix="UI" %>
<style>
cool\:tip{behavior: url(/Include/HTC/cooltip_js.htc)}
TABLE.GridView.Bridge TH INPUT.Filter{	text-transform:uppercase;	behavior1: url(/Include/HTC/TipMe.htc)}
CAPTION {BEHAVIOR: url(/Include/HTC/Toggle.htc);COLOR:navy;FONT-WEIGHT:bold}
TABLE.GridView TD.BorderRight{	border-right-width:1px;	border-right-color: Black}
TABLE.GridView TD.NextDue{background-color:#F5F5F5}
TABLE.GridView TD.Red{background-color:#FFE5E5}
TABLE.GridView TD.RedDark{color:#B80000}
TABLE.GridView TD.GreenDark{color:#006600}
TABLE.GridView TD.U A{color:black;text-decoration:none}
TABLE.GridView TD.U A.Bold{font-weight:bold}
TABLE.GridView TR TD,TH {font-size:<%=ddlFontSize.SelectedValue%>}
TABLE.Big TD,TH {font-size:<%=ddlFontSize.SelectedValue%>}
.Big{font-size:<%=ddlFontSize.SelectedValue%>}
.button INPUT {overflow:visible;padding:0px 3px;vertical-align:middle}
.button SELECT {vertical-align:middle}
SPAN.CheckBox INPUT{border:none;vertical-align:middle}
</style>
<asp:UpdatePanel ID="upButtons" UpdateMode="Always" runat="server">
<Triggers>
	<asp:PostBackTrigger ControlID="btnExcel" />
	<asp:PostBackTrigger ControlID="ShowWelcomeLetters" />
	<asp:PostBackTrigger ControlID="ddlFontSize" />
</Triggers><ContentTemplate>
<asp:ObjectDataSource ID="dsUsersCached" SelectMethod="GetUsers" runat="server" />
<span class="button">
<asp:DropDownList id="ddlUsers" DataSourceID="dsUsersCached" DataTextField="Nick" DataValueField="UserName" runat="server" AutoPostBack="true" AppendDataBoundItems="true"
		 OnDataBound="ddlUsers_DataBound" OnSelectedIndexChanged="ddlUsers_SelectedIndexChanged"
>
<asp:ListItem Text ="Self" Value=""></asp:ListItem>
</asp:DropDownList>
<asp:Button ID="btnSaveFilter" OnClientClick="if(!saveFilter())return false;" CommandName="SaveFilter" runat="server" Text="Save Filter" />
<asp:DropDownList ID="ddlFilters" DataSourceID="dsFilters" DataTextField="Name" DataValueField="Value" AutoPostBack="true" runat="server"
		 OnPreRender="ddlFilters_PreRender" OnSelectedIndexChanged="ddlFilters_SelectedIndexChanged"
></asp:DropDownList>
<asp:Button ID="btnDeleteFilter" CommandName="DeleteFilter" runat="server" Text="Delete Filter" />
<asp:ImageButton ID="btnExcel" ImageUrl="/Manager/Menu/Images/Excel.gif" CommandName="Excel"  runat="server" />
<input id="btnProfiler" onclick="showProfileManager()" value="Profiler" type="button" runat="server" />
<asp:CheckBox ID="chkFieldChooser" Checked="false" runat="server" Text="Field Chooser" AutoPostBack="true" CssClass="CheckBox" />
<asp:DropDownList ID="ddlLetters" runat="server">
<asp:ListItem Text="Select ..." Value="" />
<asp:ListItem Value="Welcome" Text="Welcome" />
<asp:ListItem Value="Delinquency.PastDue_02_06" Text="Past Due(2-6)" />
<asp:ListItem Value="Delinquency.PastDue_15_20" Text="1st Letter(15-20)" />
<asp:ListItem Value="Delinquency.PastDue_25_29" Text="2st Letter(25-29)" />
<asp:ListItem Value="Delinquency.PastDue_31_35" Text="Serious Letter(31-35)" />
<asp:ListItem Value="Delinquency.PastDue_36" Text="Final Letter(36)" />
<asp:ListItem Value="Delinquency.NSF" Text="N.S.F." />
<asp:ListItem Value="Delinquency.BrokenPromise" Text="Broken Promise" />
<asp:ListItem Value="ReStart" Text="Re-Start" />
<asp:ListItem Value="ReStart_A" Text="Re-Start(Apr)" />
<asp:ListItem Value="Invoice" Text="Invoice" />
</asp:DropDownList>
<asp:LinkButton OnClientClick="document.all.tags('FORM')[0].target='_blank';" ToolTip="Click to generate Letters for selected list" text="Show Letters" CommandName="Letter" runat="server" ID="ShowWelcomeLetters" />
</span>
</ContentTemplate></asp:UpdatePanel>
<hr style="border-style:outset">
<asp:UpdatePanel ID="upBridge" UpdateMode="Always" runat="server"><ContentTemplate>
<span title="Change Font Size">
<asp:DropDownList ID="ddlFontSize" style="background-color:#D1FFDC;vertical-align:middle" AutoPostBack="true" runat="server">
<asp:ListItem Text="100%" Value="100%" />
<asp:ListItem Text="120%" Value="120%" Selected="True" />
<asp:ListItem Text="140%" Value="140%" />
<asp:ListItem Text="160%" Value="160%" />
</asp:DropDownList></span><asp:Label style="font-size:85%" id="lblCaption" runat="server"></asp:Label>
<DS:VantageExportDataSource ID="ds"
		SelectList="*,CASE WHEN LoanID > 0 THEN 0 ELSE 1 END NeedImport,'*'+RIGHT(SSN,4)SSN4,'*'+RIGHT(VIN,6)VIN6" FilterDefault="1=0" runat="server" />
<UI:GridViewMB ID="grv" runat="server" AutoGenerateColumns="false" DataSourceID="ds"
	ShowFooter="false" AllowSorting="True" CellPadding="0" PageSize="25"
	AllowEdit="false" ShowDelete="false" RowStyle-HorizontalAlign="Right"
	RowStyle-Font-Size="XX-Small"
	Caption="" CaptionAlign="Left" CssClass="Bridge"
	EnableViewState="true" DataKeyNames="VantageID,LoanID">
	<Columns>
<asp:TemplateField HeaderText="LoanID" SortExpression="LoanID">
<ItemTemplate>
	<span style="cursor:hand;font-weight:bold;color:Navy" title='Click to open <%#Eval("LoanID")%>'
		onclick='<%#ShowApplicantJS(Eval("LoanID"))%>'><%#Eval("LoanID")%>
	</span>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="VantageID" SortExpression="VantageID">
	<ItemTemplate>
		<span title='Click to open by VantageID'	onclick1='alert("Implementation is in progress.")'><%#Eval("VantageID")%></span>
	</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="LoanProgramRef" HeaderText="<span title='Loan Program'>LP</span>" HtmlEncode="false" SortExpression="LoanProgramRef" />
<asp:TemplateField HeaderText="SSN" SortExpression="SSN">
	<ItemTemplate><span title='<%#Eval("SSN")+" : " + Eval("ClientName")%>'><%#Eval("SSN")%></span></ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="DPD" HeaderText="DPD" SortExpression="DPD" />
<asp:BoundField DataField="DSLP" HeaderText="DSLP" SortExpression="DSLP" />
<asp:BoundField DataField="U_DPD" HeaderText="U_DPD" SortExpression="U_DPD" />
<asp:BoundField DataField="U_DSLP" HeaderText="U_DSLP" SortExpression="U_DSLP" />
<asp:BoundField DataField="DaysSinceLastNote" HeaderText="DaysSinceLastNote" SortExpression="DaysSinceLastNote" />
<asp:BoundField DataField="NextDueDate" HeaderText="NextDueDate" SortExpression="NextDueDate" DataFormatString="{0:MM/dd/yy}" />
<asp:BoundField DataField="LastPaymentDate" HeaderText="LastPaymentDate" SortExpression="LastPaymentDate" DataFormatString="{0:MM/dd/yy}" />
<asp:BoundField DataField="PastDueInterest" HeaderText="PastDueInterest" SortExpression="PastDueInterest" />
<asp:BoundField DataField="CurrentDueInterest" HeaderText="CurrentDueInterest" SortExpression="CurrentDueInterest" />
<asp:BoundField DataField="PastDuePrincipal" HeaderText="PastDuePrincipal" SortExpression="PastDuePrincipal" />
<asp:BoundField DataField="CurrentDuePrincipal" HeaderText="CurrentDuePrincipal" SortExpression="CurrentDuePrincipal" />
<asp:BoundField DataField="NSFFeeBalance" HeaderText="NSFFeeBalance" SortExpression="NSFFeeBalance" />
<asp:BoundField DataField="LateFeeBalance" HeaderText="LateFeeBalance" SortExpression="LateFeeBalance" />
<asp:BoundField DataField="CompanyRef" HeaderText="Company" SortExpression="CompanyRef" />
<asp:BoundField DataField="BranchCodeRef" HeaderText="BranchCode" SortExpression="BranchCodeRef" />
<asp:BoundField DataField="ProductRef" HeaderText="Product" SortExpression="ProductRef" />
<asp:BoundField DataField="JurisdictionRef" HeaderText="Jurisdiction" SortExpression="JurisdictionRef" />
<asp:BoundField DataField="PortfolioRef" HeaderText="Portfolio" SortExpression="PortfolioRef" />
<asp:BoundField DataField="DealerName" HeaderText="DealerName" SortExpression="DealerName" />
<asp:BoundField DataField="InterestTypeRef" HeaderText="InterestType" SortExpression="InterestTypeRef" />
<asp:BoundField DataField="CurrentStatusRef" HeaderText="CurrentStatus" SortExpression="CurrentStatusRef" />
<asp:BoundField DataField="CurrentStatusDate" HeaderText="CurrentStatusDate" SortExpression="CurrentStatusDate" DataFormatString="{0:MM/dd/yy}" />
<asp:BoundField DataField="U_StatusCode" HeaderText="U_StatusCode" SortExpression="U_StatusCode" />
<asp:BoundField DataField="CollateralStatusRef" HeaderText="CollateralStatus" SortExpression="CollateralStatusRef" />
<asp:BoundField DataField="CollateralStatusDate" HeaderText="CollateralStatusDate" SortExpression="CollateralStatusDate" DataFormatString="{0:MM/dd/yy}" />
<asp:BoundField DataField="CollateralEventRef" HeaderText="CollateralEvent" SortExpression="CollateralEventRef" />
<asp:BoundField DataField="CollateralActionDate" HeaderText="CollateralActionDate" SortExpression="CollateralActionDate" DataFormatString="{0:MM/dd/yy}" />
<asp:BoundField DataField="DaysInCollateralAction" HeaderText="DaysInCollateralAction" SortExpression="DaysInCollateralAction" />
<asp:BoundField DataField="Status_Repo" HeaderText="Status_Repo" SortExpression="Status_Repo" />
<asp:BoundField DataField="StatusDate_Repo" HeaderText="StatusDate_Repo" SortExpression="StatusDate_Repo" DataFormatString="{0:MM/dd/yy}" />
<asp:BoundField DataField="OriginalAmountFinanced" HeaderText="OriginalAmountFinanced" SortExpression="OriginalAmountFinanced" />
<asp:BoundField DataField="AmountFinanced" HeaderText="AmountFinanced" SortExpression="AmountFinanced" />
<asp:BoundField DataField="OpenDate" HeaderText="OpenDate" SortExpression="OpenDate" DataFormatString="{0:MM/dd/yy}" />
<asp:BoundField DataField="FirstDueDate" HeaderText="FirstDueDate" SortExpression="FirstDueDate" DataFormatString="{0:MM/dd/yy}" />
<asp:BoundField DataField="LoanTerm" HeaderText="LoanTerm" SortExpression="LoanTerm" />
<asp:BoundField DataField="OriginalLoanTerm" HeaderText="OriginalLoanTerm" SortExpression="OriginalLoanTerm" />
<asp:BoundField DataField="OriginalInterestRate" HeaderText="OriginalInterestRate" SortExpression="OriginalInterestRate" />
<asp:BoundField DataField="InterestRate" HeaderText="InterestRate" SortExpression="InterestRate" />
<asp:BoundField DataField="OriginalAPR" HeaderText="OriginalAPR" SortExpression="OriginalAPR" />
<asp:BoundField DataField="APR" HeaderText="APR" SortExpression="APR" />
<asp:BoundField DataField="OriginalDueDay" HeaderText="OriginalDueDay" SortExpression="OriginalDueDay" />
<asp:BoundField DataField="DueDay" HeaderText="DueDay" SortExpression="DueDay" />
<asp:BoundField DataField="OriginalPaymentAmount" HeaderText="OriginalPaymentAmount" SortExpression="OriginalPaymentAmount" />
<asp:BoundField DataField="PaymentAmount" HeaderText="PaymentAmount" SortExpression="PaymentAmount" />
<asp:BoundField DataField="PaymentFrequencyRef" HeaderText="PaymentFrequency" SortExpression="PaymentFrequencyRef" />
<asp:BoundField DataField="OriginalFinanceCharge" HeaderText="OriginalFinanceCharge" SortExpression="OriginalFinanceCharge" />
<asp:BoundField DataField="FinanceCharge" HeaderText="FinanceCharge" SortExpression="FinanceCharge" />
<asp:BoundField DataField="DiscountAmount" HeaderText="DiscountAmount" SortExpression="DiscountAmount" />
<asp:BoundField DataField="OriginalReserve" HeaderText="OriginalReserve" SortExpression="OriginalReserve" />
<asp:BoundField DataField="OriginalWithHold" HeaderText="OriginalWithHold" SortExpression="OriginalWithHold" />
<asp:BoundField DataField="PurchaseDate" HeaderText="PurchaseDate" SortExpression="PurchaseDate" DataFormatString="{0:MM/dd/yy}" />
<asp:BoundField DataField="PurchasePrincipalPaid" HeaderText="PurchasePrincipalPaid" SortExpression="PurchasePrincipalPaid" />
<asp:BoundField DataField="PurchaseInterest" HeaderText="PurchaseInterest" SortExpression="PurchaseInterest" />
<asp:BoundField DataField="PurchaseInterestPaid" HeaderText="PurchaseInterestPaid" SortExpression="PurchaseInterestPaid" />
<asp:BoundField DataField="LoanFundingDate" HeaderText="LoanFundingDate" SortExpression="LoanFundingDate" DataFormatString="{0:MM/dd/yy}" />
<asp:BoundField DataField="MaturityDate" HeaderText="MaturityDate" SortExpression="MaturityDate" DataFormatString="{0:MM/dd/yy}" />
<asp:BoundField DataField="GrossBalance" HeaderText="GrossBalance" SortExpression="GrossBalance" />
<asp:BoundField DataField="PrincipalBalance" HeaderText="PrincipalBalance" SortExpression="PrincipalBalance" DataFormatString="{0:n2}" />
<asp:BoundField DataField="U_TotalPrincipal" HeaderText="U_TotalPrincipal" SortExpression="U_TotalPrincipal" />
<asp:BoundField DataField="U_ChargeOff" HeaderText="U_ChargeOff" SortExpression="U_ChargeOff" />
<asp:BoundField DataField="U_FinalRepoDate" HeaderText="U_FinalRepoDate" SortExpression="U_FinalRepoDate" />
<asp:BoundField DataField="InterestAccrued" HeaderText="InterestAccrued" SortExpression="InterestAccrued" />
<asp:BoundField DataField="InterestPaid" HeaderText="InterestPaid" SortExpression="InterestPaid" />
<asp:BoundField DataField="PrinicpalPaid" HeaderText="PrinicpalPaid" SortExpression="PrinicpalPaid" />
<asp:BoundField DataField="FeePaid" HeaderText="FeePaid" SortExpression="FeePaid" />
<asp:BoundField DataField="LegalFeeBalance" HeaderText="LegalFeeBalance" SortExpression="LegalFeeBalance" />
<asp:BoundField DataField="PaymentMethodFeeBalance" HeaderText="PaymentMethodFeeBalance" SortExpression="PaymentMethodFeeBalance" />
<asp:BoundField DataField="RepoFeeBalance" HeaderText="RepoFeeBalance" SortExpression="RepoFeeBalance" />
<asp:BoundField DataField="InsuranceFeeBalance" HeaderText="InsuranceFeeBalance" SortExpression="InsuranceFeeBalance" />
<asp:BoundField DataField="OtherFeeBalance" HeaderText="OtherFeeBalance" SortExpression="OtherFeeBalance" />
<asp:BoundField DataField="DefermentFeeBalance" HeaderText="DefermentFeeBalance" SortExpression="DefermentFeeBalance" />
<asp:BoundField DataField="DueDayChangeFeeBalance" HeaderText="DueDayChangeFeeBalance" SortExpression="DueDayChangeFeeBalance" />
<asp:BoundField DataField="CollectionFeeBalance" HeaderText="CollectionFeeBalance" SortExpression="CollectionFeeBalance" />
<asp:BoundField DataField="RecoveryFeeBalance" HeaderText="RecoveryFeeBalance" SortExpression="RecoveryFeeBalance" />
<asp:BoundField DataField="Make" HeaderText="Make" SortExpression="Make" />
<asp:BoundField DataField="Model" HeaderText="Model" SortExpression="Model" />
<asp:BoundField DataField="ModelYear" HeaderText="ModelYear" SortExpression="ModelYear" />
<asp:BoundField DataField="VIN" HeaderText="VIN" SortExpression="VIN" />
<asp:BoundField DataField="CashPrice" HeaderText="CashPrice" SortExpression="CashPrice" />
<asp:BoundField DataField="MilageAtPurchase" HeaderText="MilageAtPurchase" SortExpression="MilageAtPurchase" />
<asp:BoundField DataField="GPSTrackerID" HeaderText="GPSTrackerID" SortExpression="GPSTrackerID" />
<asp:BoundField DataField="BVAtPurchase" HeaderText="BVAtPurchase" SortExpression="BVAtPurchase" />
<asp:BoundField DataField="Milage" HeaderText="Milage" SortExpression="Milage" />
<asp:BoundField DataField="MilageAsOfDate" HeaderText="MilageAsOfDate" SortExpression="MilageAsOfDate" DataFormatString="{0:MM/dd/yy}" />
<asp:BoundField DataField="BV" HeaderText="BV" SortExpression="BV" />
<asp:BoundField DataField="BVAsOfDate" HeaderText="BVAsOfDate" SortExpression="BVAsOfDate" DataFormatString="{0:MM/dd/yy}" />
<asp:BoundField DataField="TitleStateRef" HeaderText="TitleState" SortExpression="TitleStateRef" />
<asp:BoundField DataField="IsRegistered" HeaderText="IsRegistered" SortExpression="IsRegistered" />
<asp:BoundField DataField="IsTitleReceived" HeaderText="IsTitleReceived" SortExpression="IsTitleReceived" />
<asp:BoundField DataField="RelationshipTypeRef" HeaderText="RelationshipType" SortExpression="RelationshipTypeRef" />
<asp:BoundField DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" />
<asp:BoundField DataField="LastName" HeaderText="LastName" SortExpression="LastName" />
<asp:BoundField DataField="ClientName" HeaderText="ClientName" SortExpression="ClientName" />
<asp:BoundField DataField="DLN" HeaderText="DLN" SortExpression="DLN" />
<asp:BoundField DataField="DOB" HeaderText="DOB" SortExpression="DOB" />
<asp:BoundField DataField="FICO" HeaderText="FICO" SortExpression="FICO" />
<asp:BoundField DataField="MaritalStatusRef" HeaderText="MaritalStatus" SortExpression="MaritalStatusRef" />
<asp:BoundField DataField="Occupation" HeaderText="Occupation" SortExpression="Occupation" />
<asp:BoundField DataField="PrimaryLanguageRef" HeaderText="PrimaryLanguage" SortExpression="PrimaryLanguageRef" />
<asp:BoundField DataField="TimeZoneRef" HeaderText="TimeZone" SortExpression="TimeZoneRef" />
<asp:BoundField DataField="EntityStatusRef" HeaderText="EntityStatus" SortExpression="EntityStatusRef" />
<asp:BoundField DataField="Street" HeaderText="Street" SortExpression="Street" />
<asp:BoundField DataField="AptSuite" HeaderText="AptSuite" SortExpression="AptSuite" />
<asp:BoundField DataField="City" HeaderText="City" SortExpression="City" />
<asp:BoundField DataField="CountyRef" HeaderText="County" SortExpression="CountyRef" />
<asp:BoundField DataField="StateRef" HeaderText="State" SortExpression="StateRef" />
<asp:BoundField DataField="ZipCode" HeaderText="ZipCode" SortExpression="ZipCode" />
<asp:BoundField DataField="PhoneHome" HeaderText="Phone Home" SortExpression="PhoneHome" />
<asp:BoundField DataField="PhoneWork" HeaderText="Phone Work" SortExpression="PhoneWork" />
<asp:BoundField DataField="PhoneMobile" HeaderText="Phone Mobile" SortExpression="PhoneMobile" />
<asp:BoundField DataField="PhoneOther" HeaderText="Phone Other" SortExpression="PhoneOther" />
<asp:BoundField DataField="PTP_DaysTillClose" HeaderText="<span title='PTP_DaysTillClose'>PTP DTC</span>" SortExpression="PTP_DaysTillClose" HtmlEncode="false" />
<asp:BoundField DataField="PTP_DueDate" HeaderText="<span title='PTP_DueDate'>PTP DD</span>" SortExpression="PTP_DueDate"  HtmlEncode="false" DataFormatString="{0:MM/dd/yy}" />
<asp:BoundField DataField="PTP_Agent" HeaderText="<span title='PTP_Agent'>PTP Agent</span>" SortExpression="PTP_Agent"  HtmlEncode="false" />
	</Columns>
</UI:GridViewMB>
</ContentTemplate></asp:UpdatePanel>
<UI:CollectionInfo ID="CollectionInfo" runat="server" />
<table>
<tr VAlign="top">
<td rowspan="2">
</td>
</tr>
</table>
<table>
<tr>
<td>
<ajaxtk:CollapsiblePanelExtender runat="server" ID="cpComm"
	TargetControlID="pnlComm"
	CollapseControlID="pnlCommHeader" ExpandControlID="pnlCommHeader"
	TextLabelID="lblCommLabel"
	ImageControlID="imgCommPanel"
	CollapsedImage="~/images/Buttons/expand.jpg" ExpandedImage="~/images/Buttons/collapse.jpg"
	Collapsed="true"	CollapsedText="" ExpandedText=""
	SuppressPostBack="false"
></ajaxtk:CollapsiblePanelExtender>
<asp:Panel ID="pnlCommHeader" CssClass="PanelHeaderBlue" style="width:100%" runat="server">
<table cellPadding="0" cellSpacing="0"><tr>
<th Width="1px"><asp:Image ID="imgCommPanel" ImageUrl="~/images/Buttons/expand.jpg" runat="server" />
<td nowrap><label ID="lblCommLabel" runat="server">Comments</label></td>
</tr></table>
</asp:Panel> 
<asp:Panel ID="pnlComm" runat="server" CssClass="PannelContent">
<asp:UpdatePanel ID="upComm" UpdateMode="Always" runat="server"><ContentTemplate>
<UI:GridViewMB ID="grvComments" DataSourceID="dsComments" runat="server" CaptionAlign="Left" AutoGenerateColumns="false"
		ShowHeader="true" AllowSorting="true" AllowEdit="false" AllowPaging="true" ShowDelete="false" RowStyle-HorizontalAlign="Right" PageSize="10"
>
<Columns>
<asp:BoundField DataField="NoteDate" DataFormatString="{0:MM/dd/yyyy}" HtmlEncode="false" HeaderText="NoteDate" SortExpression="NoteDate"></asp:BoundField>
<asp:BoundField DataField="CreatedDate" DataFormatString="{0:MM/dd/yyyy}" HtmlEncode="false" HeaderText="Date" SortExpression="CreatedDate"></asp:BoundField>
<asp:BoundField DataField="CreatedUser" HeaderText="Agent" SortExpression="CreateUser"></asp:BoundField>
<asp:BoundField DataField="Notes" HeaderText="Notes" DataFormatString="<pre style='font-size:125%'>{0}</pre>" HtmlEncode="false" SortExpression="Notes"></asp:BoundField>
</Columns>
</UI:GridViewMB>
</ContentTemplate></asp:UpdatePanel>
</asp:Panel>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
<UI:Notes ID="Notes" runat="server" />
<asp:HiddenField id="hdnFilterName" runat="server" />
<asp:HiddenField id="hdnFilterUser" runat="server" />
<DS:ProfileFiltersDataSource ID="dsFilters" runat="server">
<SelectParameters>
<asp:ControlParameter PropertyName="FilterUser" Name="UserName" Type="String" DefaultValue="" />
</SelectParameters>
</DS:ProfileFiltersDataSource>
<DS:VantagePaymentsDataSource ID="dsPmts" runat="server">
<SelectParameters>
<asp:ControlParameter ControlID="dsPmts" PropertyName="Page.VantageID" Name="VantageID" Type="String" />
</SelectParameters>
</DS:VantagePaymentsDataSource>

<DS:VantageCommentsDataSource ID="dsComments" runat="server">
<SelectParameters>
<asp:ControlParameter ControlID="dsPmts" PropertyName="Page.VantageID" Name="VantageID" Type="String" />
</SelectParameters>
</DS:VantageCommentsDataSource>
<DS:UsersDataSource ID="dsUsers" OrderBys="Nick" ShowProfiles="true" runat="server" />
<cool:tip delay="700" avoidMouse="true" duration="60"></cool:tip>
<pre id="pre" runat="server"></pre>
<script>
pageLoads.push(GVX_InitHeader);
pageLoads.push(function() { Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(loadCollectionInfo); });
pageLoadsAsync.push(GVX_InitHeader);
function loadCollectionInfo(sender, args) {
	var vID = args.get_dataItems()["<%=CollectionInfo.ClientID%>"];
	if (typeof (SL_CollectionInfo) != 'undefined' && SL_CollectionInfo != null)
		SL_CollectionInfo.DataContext.LoadCollectionInfo(vID);
}
var divGrid = $get("<%=upBridge.ClientID%>");
if (!divGrid) alert("divGrid is undefined.");
function showTip(el){
//el.coolTip = "Dimok";
	var tip = ((el.coolTip||"").match(/.+?<br>(.+)/)||new Array("",""))[1];
	el.coolTip = (el.value.fontcolor("navy").bold() + "<br>" + tip.replace(/(XXX|YYY|ZZZ)/g,"$1".fontcolor("#B80000").bold()));//.fontsize(3);
}
function showProfileManager(){
	showModelessDialog("/Manager/Admin/ProfilesManager.aspx",null,"resizable=1");
}
function importFromUSIX(el){
	event.cancelBubble = true;
	if( confirm("Import this loan from USIX?") )
		el.parentElement.all.tags("A")[0].click();
}
</script>
<?XML:NAMESPACE PREFIX="COOL" />
